package jrain.fw.core.business;

import java.util.Collection;
import java.util.function.Consumer;

public interface BusinessProvider {

	public BusinessResponse doSync(BusinessRequest request);

	public void doAsync(BusinessRequest request, Consumer<BusinessResponse> callbak);

	public BusinessInfo getBusinessInfo(String key);

	public Collection<BusinessInfo> listBusinessInfos();

	public BusinessInterceptor getInterceptor(String name);

	public Collection<BusinessInterceptor> listInterceptor();

}
